package cn.gjxblog.aop.autoproxy.demo2;

import cn.gjxblog.aop.autoproxy.demo1.AutoProxyConfig;
import cn.gjxblog.aop.autoproxy.demo1.UserServiceImpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {AutoProxyConfig.class})
public class AutoProxyBootStrap {

    @Autowired
    UserServiceImpl userService;


    @Test
    public void demo(){
        Object user = userService.getUser(1);
        System.out.println(user);
    }
}
